import React from 'react';
import { udp, RootContainer } from '@cscec/udp-mobile-ui';
import { Outlet } from '@umijs/max';

export default () => {
  if (udp.isRunMaster) {
    return (
      <RootContainer>
        <div style={{ height: '100%' }}>
          <Outlet />
        </div>
      </RootContainer>
    );
  }

  return <Outlet />;
};
